package net.celisdelafuente.java.Acacia.entity;

import java.util.Date;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName="books_inventory")
public class BooksInventory {

	@DatabaseField(columnName="date", id=true)
	private Date date;
	
	@DatabaseField(columnName="book_id", canBeNull=false,
			foreign=true)
	private Book book;
	
	@DatabaseField(columnName="quantity", canBeNull=false)
	private int quantity; 
	
	public BooksInventory() {
		// TODO Auto-generated constructor stub
	}

	public Date getId() {
		return date;
	}

	public void setId(Date date) {
		this.date = date;
	}

	public Book getBook() {
		return book;
	}

	public void setBook(Book book) {
		this.book = book;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	
}
